#include "TextureUniform.h"

using namespace Renderer;


void Renderer::TextureUniform::Set(Uniform* uniform)
{
	((TemplateUniform<int>*)uniform)->SetValue(_textureUnit);
}

std::string Renderer::TextureUniform::GetName()
{
	std::ostringstream oss;
	std::string s_textureUnit;

	oss << _textureUnit;
	s_textureUnit = oss.str();

	return std::string("og_texture") + s_textureUnit;
}

Renderer::TextureUniform::TextureUniform(int textureUnit)
{
	_textureUnit = textureUnit;
}
